﻿using System;
using System.Windows.Controls;
using Core.Infrastructure.ScreenManager;
using Core.ScreenStore.View;
using Microsoft.Practices.Unity;
using Core.ScreenStore.ViewModel;
using ThemeLoader;

namespace Core.ScreenStore.Screen
{
    public class ArticleDetailsScreen : ScreenBase
    {
        public ArticleDetailsScreen(ArticleDetailsViewModel viewModel,
                                    IResourceProvider resourceProvider)
            : base(resourceProvider)
        {
            base.StyleKey = "ArticleDetailsViewStyle";
            base.RegisterView<ArticleDetailsView>();
            base.ViewModel = viewModel;
        }

        protected ArticleDetailsView articleDetailsView { get { return (ArticleDetailsView)this.View; } }

        public override bool CanEnter()
        {
            return true;
        }

        public override bool CanLeave()
        {
            return true;
        }

        public override void CleanUp()
        {
        }
    }
}
